<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="../common/init_context.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>国付宝收银台 - 订单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="${ROOT}/static/css/reset.css" media="all" />
<link type="text/css" rel="stylesheet" href="${ROOT}/static/css/style.css" media="all" />
<link type="text/css" rel="stylesheet" href="${ROOT}/static/css/ui-lightness/jquery-ui-1.9.2.custom.css" media="all" />
<script type="text/javascript" src="${ROOT}/static/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${ROOT}/static/js/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="${ROOT}/static/js/jquery.gopay.ext.js"></script>

<script type="text/javascript" src="${ROOT}/static/js/gopay/PwdControl.js"></script>
<script type="text/javascript" src="${ROOT}/static/js/gopay/payConfirm.js"></script>
<!--[if IE 6]> 
<script src="../javascripts/png_ie6fix.js" type="text/javascript"></script> 
<script type="text/javascript">
EvPNG.fix("div, span,a");
</script>

<![endif]-->

</head>
<body>
<%@include file="../common/header.jsp"%>
<div class="container1024">
	<div class="container960">
        <jsp:include page="payInfoHead.jsp" flush="true"></jsp:include>
	<div class="backgroundBox-1">
		<div class="borderBox-1">
			<div class="titleBox-4">
				<h6 class="icon-suc">恭喜您，支付成功 </h6>
			</div>
			<table class="table-tml">
				<tbody>
					<c:choose>
						<c:when test="${'00200' eq order.intTxnCd}">
						<!-- 入金 -->
							<tr>
								<td>
									<a href="#" onclick="notify();">点此查看详情</a>
								</td>
							</tr>
						</c:when>
						<c:otherwise>
						<!-- 网关支付 -->
							<tr>
								<th width="82px" rowspan="2"><img src="${ctx }/static/img/loading.gif" /></th>
								<td>页面将在5秒后跳转</td>
							</tr>
							<tr>
								<td>
								如果页面没有跳转，<a href="#" onclick="notify();">点此跳转回商户</a>
								</td>
							</tr>
						</c:otherwise>
					</c:choose>
					
				</tbody>
			</table>
		</div>
	</div>
</div>
</div>
<script type="text/javascript">
	var ctx='${ctx}';
	var intTxnCd = '${order.intTxnCd}';
	function notify(){
		var redirect = ctx+"/redirect/BankPayCallbackSelf.shtml?orderId="+${order.orderId};
		window.location.href=redirect;
	}
	
	$(function() {
		if(intTxnCd != '00200'){
			setTimeout(function(){notify();},3000);
		}
	});
</script>
<%@include file="../common/footer.jsp"%>
</body>
</html>